/**
 * A simple applet that sets the backgroud and foreground colors and outputs 
 * The string
 */
package isa.mayouzhong.javastudy.applet;
import java.awt.*;
import java.applet.*;
/*
 * <applet code="Sample" width=300 height=50>
</applet>
*/
/**
 * @author mayouzhong
 *
 */
public class Sample extends Applet{

	/**
	 * @param args
	 */

		String msg;
		//Set the background and foreground colors
		public void init()
		{
			setBackground(Color.cyan);
			setForeground(Color.red);
			//msg = "Inside in init()--";
		}
		
		public void start()
		{
			//msg += "inside start().";
		}
		
		public void paint(Graphics g)
		{
			msg = "Insdie paint()--";
			g.drawString(msg,100,100);
		}

	

}
